package com.boot.mapper;

import com.boot.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {

    List<User> list(@Param("start") Integer start,@Param("pageSize") Integer pageSize);

    List<User> getByUserNameAndPassword(@Param("userName") String userName,@Param("password") String password);

    void delById(@Param("id") Long id);

    void deleteAll(List<Long> ids);

    void updateById(User user);

    User getById(@Param("id") Long id);

    void save(User user);

    int count();

    List<User> getByUserName(@Param("userName") String userName);

}
